﻿using System.ComponentModel.DataAnnotations;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Web.Models.CoreData
{
    /// <summary>
    /// 
    /// </summary>
    [Table("tshipinfo")]
    public class ShipInfo
    {
        /// <summary>
        /// 消息唯一标识
        /// </summary>
        [Key]
        [Column("ckey"),MaxLength(500)]
        public String Key { get; set; }

        /// <summary>
        /// 船名
        /// </summary>
        [Column("name")]
        public String Name { get; set; }

        /// <summary>
        /// MMSI
        /// </summary>
        [Column("mmsi")]
        public String MMSI { get; set; }

        /// <summary>
        /// 数据源，1：船讯网，2：长江，3：GPS
        /// </summary>
        [Column("source")]
        public int Source { get; set; }

        
        
        /// <summary>
        /// 船详细信息
        /// </summary>
        [Column("cValue")]
        public String Value { get; set; }


        /**
        * 船讯网
        */
        public static  int AIS_CHUANXUN = 1;

        /**
         * AIS长江
         */
        public static  int AIS_CHANGJIANG = 2;

        /**
         * GPS
         */
        public static  int GPS_RMC = 3;
    }
}
